#ifndef NARRATIONWIDGETITEM_H
#define NARRATIONWIDGETITEM_H

#include <QWidget>
#include "narrationnode.h"
#include "gamemanager.h"
namespace Ui {
class NarrationWidgetItem;
}

class NarrationWidgetItem : public QWidget
{
    Q_OBJECT

public:
    explicit NarrationWidgetItem(QWidget *parent = nullptr,NarrationNode* narrationNode = nullptr);
    ~NarrationWidgetItem();
    void Init(NarrationNode* n);
    NarrationNode* node;
    void LoadNode();
    void SetName(QString s);
protected:
    void mousePressEvent(QMouseEvent *event);
private:
    Ui::NarrationWidgetItem *ui;
    void LoadOptions();
};

#endif // NARRATIONWIDGETITEM_H
